import Vue from 'vue'
import Vuex from 'vuex'
import tab from "./tab.js"
import createPersistedState from "vuex-persistedstate"
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState({
    storage: window.sessionStorage
  })],
  state:{
    canlogin:false,
  },
  mutations: {
    changelogin(state,flag){
      console.log(flag);
      console.log(state);
      state.canlogin=flag
    }
  },
  modules: {
    tab
  }
})
